<?php
/*获取$roomToken 复制注释代码 替换userid，roomname*/
// require_once __DIR__ . '/qiniu/autoload.php';
// use Qiniu\Auth;//引入七牛云授权文件
// $accessKey = 'dZ4JiqyNgc6WgVEixLPUSzrEr3jUloZewEuV4gJI';
// $secretKey = 'Intd7MmakuzmxeyY-OeEUPZHWFVaezLArY8Fid_9';
// $auth = new Auth($accessKey, $secretKey);
// $params['appId'] = 'exhjh3b7b';//应用id
// $params['userId'] = 45;
// $params['roomName'] = 4556;

// $appAccessString = json_encode($params);
// $roomToken = $auth->signWithData($appAccessString);
// var_dump($roomToken);exit;
 ?>
<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
	<title>登录</title>
	<link rel="stylesheet" href="css/core.css">
	<script src="js/jquery-2.2.4.min.js" type="text/javascript"></script>
	<script src="js/jquery.cookie.js" type="text/javascript"></script>
	<script src="js/layer/layer.js" type="text/javascript"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?cb5d49b07e0a753dc8ee27ba2c73495d";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<section style="text-align:center;">
	<div class="login-banner"><img src="images/login-banner.jpg" /><i><img src="images/logo-w.png" /></i></div>
	<div class="login-info-box">
		<div class="login-input-box">
			<i class="icon-phone"></i><input type="text" name="phone" placeholder="输入你的用户名/手机号" />
		</div>
		<div class="login-input-box">
			<i class="icon-pass"></i><input type="text" name="pass" placeholder="输入您的密码" />
		</div>
		<div class="login-type-box">
			<a href="#">忘记密码?</a>
		</div>
		<button class="login-btn">登&nbsp;&nbsp;录</button>
	</div>
	<a href="register.html" class="reg-to-btn">注&nbsp;&nbsp;册</a>
	<div class="login-control-box">
		<p>第三方登录</p>
		<a href="#"><img src="images/share-btn-01.png" /></a>
	</div>
</section>

<script type="text/javascript">

$(function(){
	$(".login-btn").click(function(){
		if($("input[name='phone']").val() == ''){
			return layer.open({content:"输入你的用户名/手机号",skin:'msg',time:3});
		}
		if($("input[name='pass']").val() == ''){
			return layer.open({content:"输入您的密码",skin:'msg',time:3});
		}
		layer.open({content:"登录成功",skin:'msg',time:3});
	});
});

</script>
</body>
</html>
